//
//  ShareOrderProdCell.m
//  JiaoX
//
//  Created by jiaoxiu－005 on 15/4/13.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "ShareOrderProdCell.h"

@implementation ShareOrderProdCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    static  NSString  *CellIdentiferId = @"ShareOrderProdCellID";
    ShareOrderProdCell  *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentiferId];
    if (cell == nil) {
        NSArray *nibs = [[NSBundle mainBundle]loadNibNamed:@"ShareOrderProdCell" owner:nil options:nil];
        cell = [nibs lastObject];
    }
    return cell;
}

-(void)setShareProduct:(CartProdSub *)shareProduct{
    JXLog(@"shareProduct=%@",shareProduct.prodImageUrl);
    [self.productImgView sd_setImageWithURL:[NSURL URLWithString:[shareProduct prodImageUrl]]];
    [self.productDesc setText:[shareProduct prodName]];
    [self.productStatus setSelected:shareProduct.isSelected];
}

@end
